<?php
include_once("conf/CoreConfiguration.inc.php");
include_once("conf/CoreSetting.inc.php");

include_once(LIB_IMPORTER_PATH . DBMS_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . CORE_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . CORE_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . SUPPORT_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . TEMPLATE_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . THEME_LIB_IMPORTER_NAME);
include_once(LIB_IMPORTER_PATH . APPLICATION_CORE_LIB_IMPORTER_NAME);


$mRedirect = new Redirector('index.php');
$mRedirect->SetAutoRedirect(true);

//SESSION
$_SESSIONHANDLER['OVERWRITE_PHP_FUNCTION'] = 0;
$mSession = SIDHandler::GetInstance($_SESSIONHANDLER);

//PROSES LOGIN
$mLogin = new Logged($mSession);
$mLogin->Logout();
$mRedirect->Redirecting();

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <title><?php echo CORE_APPLICATION ?></title>

<?php
foreach ($mIncStyle as $style) {
    echo $style;
}

foreach ($mIncJS as $jscript) {
    echo $jscript;
}
?>
    </head>

    <body>
<?php
$mTheme = new ThemeBasic();
if(!CORE_DEVELOPING_MODE)
    $mTheme->PrintRedirectingPage();
?>
    </body>	
</html>
